//
//  UserInformationModel.m
//  StandardizedProduct
//
//  Created by 宁宁 on 16/7/6.
//  Copyright © 2016年 ym. All rights reserved.
//

#import "UserInformationModel.h"

@implementation UserInformationModel

+ (UserInformationModel *)parseUserWithDictionary:(NSDictionary *)dict{
    UserInformationModel *model = [[UserInformationModel alloc] init];
    
    /**用户名*/
    model.UserName = [NSString stringWithFormat:@"%@", dict[@"UserName"]];
    /**登录密码*/
    model.UserPassword = [NSString stringWithFormat:@"%@", dict[@"UserPassword"]];
    /**姓名*/
    model.Name = [NSString stringWithFormat:@"%@", dict[@"Name"]];
    /**昵称*/
    model.Nick = [NSString stringWithFormat:@"%@", dict[@"Nick"]];
    /**性别*/
    model.Sex = [NSString stringWithFormat:@"%@", dict[@"Sex"]];
    /**头像*/
//    if ([dict[@"HeadImg"] isEqualToString:@""]) {
//        model.HeadImg = @"";
//    }
    model.HeadImg = [NSString stringWithFormat:@"%@%@", BaseURLStringString, dict[@"HeadImg"]];
    /**生日*/
    model.Birthday = [NSString stringWithFormat:@"%@", dict[@"Birthday"]];
    /**邮箱*/
    model.Email = [NSString stringWithFormat:@"%@", dict[@"Email"]];
    /**手机号*/
    model.Mobile = [NSString stringWithFormat:@"%@", dict[@"Mobile"]];
    /**电话*/
    model.Phone = [NSString stringWithFormat:@"%@", dict[@"Phone"]];
    /**会员号*/
    model.CardNo = [NSString stringWithFormat:@"%@", dict[@"CardNo"]];
    /**QQ*/
    model.QQ = [NSString stringWithFormat:@"%@", dict[@"QQ"]];
    
    /**创建时间*/
    model.CreationDate = [NSString stringWithFormat:@"%@", dict[@"CreationDate"]];
    /**访问时间*/
    model.LastVisit = [NSString stringWithFormat:@"%@", dict[@"LastVisit"]];
    
    /**手机号码是否认证 0未认证 1认证*/
    model.IsMobileValidate = [NSString stringWithFormat:@"%@", dict[@"IsMobileValidate"]];
    /**邮箱是否认证 0未认证 1认证*/
    model.IsEmailValidate = [NSString stringWithFormat:@"%@", dict[@"IsEmailValidate"]];
    
    /**省Id*/
    model.ProvinceId = [NSString stringWithFormat:@"%@", dict[@"ProvinceId"]];
    /**市Id*/
    model.CityId = [NSString stringWithFormat:@"%@", dict[@"CityId"]];
    /**区Id*/
    model.AreaId = [NSString stringWithFormat:@"%@", dict[@"AreaId"]];
    /**省*/
    model.ProvinceName = [NSString stringWithFormat:@"%@", dict[@"ProvinceName"]];
    /**市*/
    model.CityName = [NSString stringWithFormat:@"%@", dict[@"CityName"]];
    /**区*/
    model.AreaName = [NSString stringWithFormat:@"%@", dict[@"AreaName"]];
    /**详细地址*/
    model.BuyerAddress = [NSString stringWithFormat:@"%@", dict[@"BuyerAddress"]];
    /**备注*/
    model.Remark = [NSString stringWithFormat:@"%@", dict[@"Remark"]];
    
    return model;

}

@end
